export default{
    //搜索高亮函数
    highlightHTML:function(html,searh_key){
        if(!searh_key) return html;
        html = String(html);
        searh_key = String(searh_key);
        html = html.replace(new RegExp(searh_key,'gi'),`<span style="color:tomato;font-weight:bold">${searh_key}</span>`);
        return html;
    }
}